#include<iostream>

using namespace std;

int main()
{
	bool c[10] = { true };

	return 0;
}


class Solution {
public:
    vector<vector<int>> ret;
    vector<int> v;
    bool check[7];

    vector<vector<int>> permute(vector<int>& nums) {
        dfs(nums);
        return ret;
    }

    void dfs(vector<int>& nums)
    {
        if (v.size() == nums.size())
        {
            ret.push_back(v);
            return;
        }

        for (int i = 0; i < nums.size(); i++)
        {
            if (!check[i])
            {
                v.push_back(nums[i]);
                check[i] = true;
                dfs(nums);

                v.pop_back();
                check[i] = false;
            }
        }
    }
};